package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.mapper.DtsCollectMapper;
import com.qf.pojo.DtsCollect;
import com.qf.service.DtsCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Zwnan
 */
@Service
public class DtsCollectServiceImpl implements DtsCollectService {

    @Autowired
    private DtsCollectMapper dtsCollectMapper;

    @Override
    public IPage<DtsCollect> selectPage(Integer page, Integer limit, String sort, String order) {
        IPage<DtsCollect> iPage = new Page<>();

        return dtsCollectMapper.selectPage(iPage,new QueryWrapper<DtsCollect>().eq("deleted", false));
    }
}
